package com.cartrentalsystem.domain.po;

import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import java.time.LocalDate;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;
import java.util.List;

import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 
 * </p>
 *
 * @author LHD
 * @since 2025-06-15
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("rental")
public class Rental implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 租赁id
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 客户id
     */
    private Integer customerId;

//    private Customers customer;

    /**
     * 车辆id
     */
    private Integer carId;

//    private Car car;

    /**
     * 租赁开始日期
     */
    private LocalDate startRentalTime;

    /**
     * 租赁结束日期
     */
    private LocalDate endRentalTime;

    /**
     * 租赁实际归还日期
     */
    private LocalDate realReturnTime;

    /**
     * 租赁总金额
     */
    private Double money;

    /**
     * 租赁状态（-1为拒绝，0为待审核，1为进行中，2为已完成）
     */
    private Integer status;

    /**
     * 逻辑删除（0存在，1删除）
     */
    @TableLogic
    private Integer deleted;


}
